CC=gcc
FLAGS=-fPIC -O2 -I../../ `curl-config --cflags`
LDFLAGS=-I../../ `curl-config --libs`

all:
	$(CC) $(FLAGS) -c -o redcurls.o redcurls.cpp
	$(CC) $(LDFLAGS) -shared -o redcurls.so redcurls.o
	chmod a-x redcurls.so

install:
	rm *.o
	mv *.so ../../../modules/

clean:
	rm *~ *.o *.so
